#include <iostream>
using namespace std;
#define WEEK_BASE_TIME 40
int main()
{
	int hour_money,time_week,sum_salary;
	cout<<"Enter hour_monry & time_week: ";
	cin>>hour_money>>time_week;
	int extra_money=hour_money*1.5;
	if(time_week > WEEK_BASE_TIME)
	{
		sum_salary = hour_money*WEEK_BASE_TIME + (time_week-WEEK_BASE_TIME)*extra_money;
	}
	else
	{
		sum_salary = hour_money*time_week;
	}
	cout<<"salary_week: "<<sum_salary<<endl;
	return 0;
}
